package com.fulihui.systemcore.request.prop;

import com.fulihui.systemcore.enums.EnvTypeEnum;
import lombok.Getter;
import lombok.Setter;
import org.near.servicesupport.request.BaseRequest;

import javax.validation.constraints.NotNull;

/**
 * 属性保存请求参数
 * Created by Willard.Hu on 2016/3/5.
 */
@Getter
@Setter
public class PropertiesSaveRequest extends BaseRequest {
    private static final long serialVersionUID = 1742996194526571466L;

    /** 产品名 */
    @NotNull
    private String prodName;
    /** 属性名 */
    @NotNull
    private String key;
    /** 属性值 */
    @NotNull
    private String value;
    /** 环境类型，默认发布环境 {@link com.fulihui.systemcore.enums.EnvTypeEnum} */
    private String envType;

    public PropertiesSaveRequest() {
        envType = EnvTypeEnum.RELEASE.getCode();
    }
}
